<template>
  <div>
    <h3 class="son">穿透-子组件</h3>
    <h4 v-bind="$attrs">属性绑定</h4>
    <h5 v-on="$listeners">事件绑定</h5>
  </div>
</template>

<script>
export default {
  name: 'SonComp',
  inheritAttrs: false,
  props: [],
  components: {},
  created() {
    console.log(this.$attrs);
    console.log(this.$listeners);
  }
};
</script>

<style scoped lang="scss"></style>
